package com.kuaimacode.kframework.api.vo.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author qinyong
 * @Title:
 * @Package com.kuaimacode.kframework.api.vo.request
 * @Description: created by IntelliJ IDEA
 * @date 2019-03-10 17:50
 */
@Data
public class UpdatePhoneReq {

    private Long id;
    @ApiModelProperty(value = "原手机号")
    @Pattern(regexp = "^1(3|4|5|7|8)\\d{9}$",message = "原手机号码格式错误")
    @NotBlank(message = "原手机号码不能为空")
    private String oldPhone;
    @ApiModelProperty(value = "新手机号")
    @Pattern(regexp = "^1(3|4|5|7|8)\\d{9}$",message = "新手机号码格式错误")
    @NotBlank(message = "新手机号码不能为空")
    private String newPhone;
    @ApiModelProperty(value = "验证码")
    @NotBlank(message = "验证码不能为空")
    private String verifyCode;
}
